export type Token = {
  token: string;
  role: Role;
  id: number;
};

export type UserInfo = {
  username: "",
  role?: Role,
  account:"",
  detail:{
    email : '',
    phone : '',
  }
};

export const enum Role {
  Admin = '管理员',
  Student = '学生',
  Teacher = '教师',
};

// 登录
export type InputLogin = {
  account: string;
  password: string;
};

export type InputImportUser = {
  csv_file: File;
  registerRole: Role;
};
